<?php
function connect_to_database()
{
	$connection = mysql_connect("127.0.0.1", "root", "12345678");

	// 从数据库获得查询结果
	if (mysql_select_db("website", $connection) == false)
	{
		die('Could not select database: ' . mysql_error());
	}

	return $connection;
}
?>
